package com.example.zsf.base;

import androidx.fragment.app.Fragment;

import java.util.ArrayList;
import java.util.List;

import retrofit2.Call;

public class ZSFFragment extends Fragment {
    private List<Call> calls = new ArrayList<>();


    @Override
    public void onDestroyView() {
        for (Call call : calls) {
            call.cancel();
        }
        super.onDestroyView();
    }

    protected void disposed(Call call) {
        calls.add(call);
    }


}
